<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{jzdsForm.bundleName}"/>
    <head>
        <title>#{text['jzdsDetail.title']}</title>
        <meta name="heading" content="#{text['jzdsDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="jzdsForm">

<h:form id="jzdsForm" onsubmit="return validateJzdsForm(this)">
<h:inputHidden value="#{jzdsForm.jzds.id}" id="id"/>
<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="jzdsmc" value="#{text['jzds.jzdsmc']}"/>
    <t:message for="jzdsmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="jzdsmc" value="#{jzdsForm.jzds.jzdsmc}" required="true" maxlength="50">
        <v:commonsValidator type="required" arg="#{text['jzds.jzdsmc']}"/>
    </h:inputText>
    <h:outputLabel styleClass="desc" for="operation" value="#{text['jzds.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{jzdsForm.jzds.operation}" required="false" maxlength="20">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['jzds.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{jzdsForm.jzds.optdate}" required="false" maxlength="23">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="qywz" value="#{text['jzds.qywz']}"/>
    <t:message for="qywz" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="qywz" value="#{jzdsForm.jzds.qywz}" required="false" maxlength="100">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="username" value="#{text['jzds.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{jzdsForm.jzds.username}" required="false" maxlength="50">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="xh" value="#{text['jzds.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{jzdsForm.jzds.xh}" required="false" maxlength="255">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ys1" value="#{text['jzds.ys1']}"/>
    <t:message for="ys1" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ys1" value="#{jzdsForm.jzds.ys1}" required="false" maxlength="100">
    </h:inputText>
    <h:outputLabel styleClass="desc" for="ys2" value="#{text['jzds.ys2']}"/>
    <t:message for="ys2" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="ys2" value="#{jzdsForm.jzds.ys2}" required="false" maxlength="100">
    </h:inputText>

    <h:panelGroup styleClass="buttonBar bottom">
        <h:commandButton value="#{text['button.save']}" action="#{jzdsForm.save}" id="save" styleClass="button"/>

        <c:if test="${not empty jzdsForm.jzds.id}">
        <h:commandButton value="#{text['button.delete']}" action="#{jzdsForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Jzds')"/>
        </c:if>

        <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
    </h:panelGroup>
    <h:outputText/><h:outputText/>
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateJzdsForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('jzdsForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
